#!/usr/bin/env python
# vim: set ts=4:sw=4:sta:et:sts=4:ai:
#
# setup.py
#
# libevent Python bindings
#
# Copyright (c) 2010 Elizabeth Jennifer Myers <elizabeth@sporksirc.net>
# Copyright (c) 2004 Dug Song <dugsong@monkey.org>
# Copyright (c) 2003 Martin Murray <murrayma@citi.umich.edu>
#

from distutils.core import setup, Extension
import os

event = Extension('event2',
                        define_macros = [('MAJOR_VERSION', '0'),
                                         ('MINOR_VERSION', '5')],
                        include_dirs = ['/usr/local/include'],
                        libraries = ['event'],
                        library_dirs = ['/usr/local/lib'],
                        sources = ['event.c'])

setup(name='event2',
      version='0.5',
      author='Elizabeth Jennifer Myers',
      author_email='elizabeth@sporksirc.net',
      url='https://code.google.com/p/python-event2/',
      description='event library',
      long_description="""This module provides a mechanism to execute a function when a specific event on a file handle, file descriptor, or signal occurs, or after a given time has passed.""",
      license='BSD',
      download_url='https://code.google.com/p/python-event2/',
      ext_modules = [ event ])
